package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.OriginalArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class DecreaseCooldown extends AbstractMethod {
    private static final String name = "decreaseCooldown";
    /**
    Only one decrease event can be triggered per resource every DecreaseCooldown interval.
    **/
    /**
    每个DecreaseCooldown间隔每个资源只能触发一个减少事件。
    **/
    public DecreaseCooldown(long interval, String durationLiteral) {
        super(new ArrayList<>(), name);
        //
        this.args.add(new OriginalArg(interval + durationLiteral));

    }
}
